package com.zsw.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单实体类
 * @author zhangsw
 */
@Data
@ApiModel(value="Order",description="订单实体类")
public class Order implements Serializable {

    /**
     * 订单号
     */
    @ApiModelProperty(value="订单号",name="id")
    private Integer id;

    /**
     * 用户编号
     */
    @ApiModelProperty(value="用户编号",name="userId")
    private Integer userId;

    /**
     * 商品编号
     */
    @ApiModelProperty(value="商品编号",name="commodityCode")
    private Integer commodityCode;

    /**
     * 购买数量
     */
    @ApiModelProperty(value="购买数量",name="count")
    private Integer count;

    /**
     * 订单总金额
     */
    @ApiModelProperty(value="订单总金额",name="money")
    private BigDecimal money;

    /**
     * 订单状态
     */
    @ApiModelProperty(value="订单状态",name="status")
    private Integer status;
    
}
